<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script type="text/JavaScript">
	function doSave(){
		var url = "<#if id??>editVote.do?id=${id}<#else>addVote.do</#if>";
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(){
				return $(this).form('validate');
		    },  
		    success:function(data){  
				top.closemodalwindow(true,data);
		    }  
		});
	}
	//
	$(function(){
		if('${obj.selectclass!}'){
			$('#selectclass').combobox('setValue','${obj.selectclass!}');
		}
	})
</script>

</head>
<body>
<form method="post" name="voteForm" id="voteForm">
<table border="0" width="95%" align="center" cellspacing="0" cellpadding="4" class="table_all">
<tr>
	<td width="70" height="25" class="td_table_1">类型：</td>
	<td width="*" class="td_table_2">&nbsp;
	<select class="easyui-combobox" name="selectclass" id="selectclass" style="background-color:#FFF;" panelHeight="60">
	  <option  selected value="0">单选</option>
	  <option  value="1">多选</option>
	  </select>
    </td>
</tr>
<tr>
	<td  class="td_table_1">主题：</td>
	<td class="td_table_2">&nbsp;<input class="easyui-validatebox" type="text" required="true" name="title" size="40" value="${obj.title!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项1：</td>
	<td class="td_table_2">&nbsp;<input class="easyui-validatebox" type="text"  name="select1" maxlength="20" value="${obj.select1!}">
		票数：<input class="easyui-validatebox" type="text" name="answer1" maxlength="5" style="width:50px;" value="${obj.answer1!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项2：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select2" maxlength="20" value="${obj.select2!}">
		票数：<input type="text" class="easyui-validatebox" name="answer2" maxlength="5" style="width:50px;" value="${obj.answer2!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项3：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select3" maxlength="20" value="${obj.select3!}">
		票数：<input type="text" class="easyui-validatebox" name="answer3" maxlength="5" style="width:50px;" value="${obj.answer3!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项4：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select4" maxlength="20" value="${obj.select4!}">
		票数：<input type="text" class="easyui-validatebox" name="answer4" maxlength="5" style="width:50px;" value="${obj.answer4!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项5：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select5" maxlength="20" value="${obj.select5!}">
		票数：<input type="text" class="easyui-validatebox" name="answer5" maxlength="5" style="width:50px;" value="${obj.answer5!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项6：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select6" maxlength="20" value="${obj.select6!}">
		票数：<input type="text" class="easyui-validatebox" name="answer6" maxlength="5" style="width:50px;" value="${obj.answer6!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项7：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select7" maxlength="20" value="${obj.select7!}">
		票数：<input type="text" class="easyui-validatebox" name="answer7" maxlength="5" style="width:50px;" value="${obj.answer7!}">
	</td>
</tr>
		
<tr>
	<td class="td_table_1">选项8：</td>
	<td class="td_table_2">&nbsp;<input type="text" class="easyui-validatebox" name="select8" maxlength="20" value="${obj.select8!}">
		票数：<input type="text" class="easyui-validatebox" name="answer8" maxlength="5" style="width:50px;" value="${obj.answer8!}">
	</td>
</tr>
</table>
</form>
</body>
</html>